<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title></title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../lib/layui-v2.6.3/css/layui.css" media="all">
    <link rel="stylesheet" href="../css/public.css" media="all">
    <style>
    </style>
</head>

<body>
    <div class="layuimini-container">
        <div class="layuimini-main">

            <fieldset class="table-search-fieldset">
                <legend>搜索信息</legend>
                <div style="margin: 10px 10px 10px 10px">
                    <form class="layui-form layui-form-pane" action="">
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">粮仓列表</label>
                                <div class="layui-input-inline">
                                    <select name="modules">
                                        <option value="1">一号仓</option>
                                        <option value="2">二号仓</option>
                                        <option value="3">三号仓</option>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">开始时间</label>
                                <div class="layui-input-inline">
                                    <input type="text" class="layui-input" id="test1" placeholder="yyyy-MM-dd">
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">结束时间</label>
                                <div class="layui-input-inline">
                                    <input type="text" class="layui-input" id="test2" placeholder="yyyy-MM-dd">
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">分层</label>
                                <div class="layui-input-inline">
                                  <select>
                                    <option value="1">一层</option>
                                    <option value="2">二层</option>
                                    <option value="3">三层</option>
                                  </select>
                                </div>
                              </div>
                            <div class="layui-inline">
                                <button type="submit" class="layui-btn layui-btn-primary" lay-submit
                                    lay-filter="data-search-btn"><i class="layui-icon"></i> 查 询</button>
                            </div>
                        </div>
                    </form>
                </div>
            </fieldset>

            <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
                <ul class="layui-tab-title">
                    <li>发热提醒</li>
                    <li class="layui-this">处理意见</li>
                </ul>
                <div class="layui-tab-content">
                    <div class="layui-tab-item">
                        <table class="layui-hide" id="currentTableId" lay-filter="currentTableFilter"></table>
                    </div>
                    <div class="layui-tab-item layui-show">
                        <table class="layui-hide" id="currentTableId2" lay-filter="currentTableFilter"></table>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script src="../lib/layui-v2.6.3/layui.js" charset="utf-8"></script>
    <script src="../js/lay-config.js?v=1.0.4" charset="utf-8"></script>
    <script>
        layui.use(['form', 'table', 'echarts'], function () {
            var $ = layui.jquery,
                form = layui.form,
                laydate = layui.laydate,
                table = layui.table,
                echarts = layui.echarts;

            laydate.render({
                elem: '#test1'
            });

            laydate.render({
                elem: '#test2'
            });


            // 监听搜索操作
            form.on('submit(data-search-btn)', function (data) {
                var result = JSON.stringify(data.field);

                return false;
            });

            table.render({
                elem: '#currentTableId',
                url: '../api/table.json',
                defaultToolbar: ['filter', 'exports', 'print', {
                    title: '提示',
                    layEvent: 'LAYTABLE_TIPS',
                    icon: 'layui-icon-tips'
                }],
                cols: [[
                    { field: 'field0', title: '日期', align: 'center' },
                    { field: 'field1', title: '预测温度（℃）', align: 'center' },
                    { field: 'field2', title: '气温（℃）', align: 'center' },
                    { field: 'field3', title: '粮堆温度＞目标粮温', align: 'center' },
                    { field: 'field4', title: 't粮-2℃≤t气≤25℃', align: 'center' },
                    { field: 'field5', title: '处置意见', align: 'center' },
                ]],
                page: false,
                skin: 'line'
            });

            table.render({
                elem: '#currentTableId2',
                url: '../api/table.json',
                defaultToolbar: ['filter', 'exports', 'print', {
                    title: '提示',
                    layEvent: 'LAYTABLE_TIPS',
                    icon: 'layui-icon-tips'
                }],
                cols: [[
                    { field: 'field0', title: '日期', align: 'center' },
                    { field: 'field1', title: '预测温度（℃）', align: 'center' },
                    { field: 'field2', title: '气温（℃）', align: 'center' },
                    { field: 'field3', title: '粮堆温度＞目标粮温', align: 'center' },
                    { field: 'field4', title: 't粮-2℃≤t气≤25℃', align: 'center' },
                    { field: 'field5', title: '处置意见', align: 'center' },
                ]],
                page: false,
                skin: 'line'
            });

        });
    </script>

</body>

</html>